Multifunctional machine